package com.zsrd.lessons.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zsrd.lessons.domain.TsQuestion;
import com.zsrd.lessons.domain.dto.TsQuestionAddDto;
import com.zsrd.lessons.domain.dto.TsQuestionUpdateDto;
import com.zsrd.lessons.domain.vo.TsQuestionVo;

import java.util.Map;

/**
 * <p>
 * 题目表 服务类
 * </p>
 *
 * @author Chen Wei
 * @since 2022-07-11
 */
public interface TsQuestionService extends IService<TsQuestion> {

    IPage<TsQuestionVo> tsQuestionService(String orgNo, String loginId, String keyword, Long current, Long size);

    void addQuestion(TsQuestionAddDto a);

    void updateQuestion(TsQuestionUpdateDto a);

    void deleteQuestion(Long id);

    Map<String, Object> lookAnswer(Long id);

    Map<String, Object> questionDetail(Long id);

}
